<?php
/**
 * 产品控制器
 * @author 聂哥
 * @Date: 2023-03-06 10:46:45
*/
namespace app\wx\controller;

use app\api\model\SupplyOrder;
use think\Controller;

class Content extends Controller
{
    public function index()
    {
        $select = SupplyOrder::order('id', 'desc')->select();
        $data = [
            'code'  => 0,
            'msg'   => '',
            'count' => $select->count(),
            'data'  => $select,
        ];
        return json($data);
    }
    public function info()
    {
        return $this->fetch();
    }
}
